﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.TcNavigator.CUiTCNavigatorCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.TcCommands;
using System.Windows;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.TcNavigator;

public class CUiTCNavigatorCmd : TxButtonCommand
{
  private AWCTeamcenterNavigator m_dialog;

  public virtual void Execute(object cmdParams)
  {
    if (this.m_dialog != null && this.m_dialog.ShouldCloseDialog)
      this.m_dialog = (AWCTeamcenterNavigator) null;
    if (this.m_dialog == null)
    {
      this.m_dialog = new AWCTeamcenterNavigator((CApAWCHostSessionManager) new CApAWCManager());
      ((Window) this.m_dialog).Title = base.Name;
      ((Window) this.m_dialog).Show();
    }
    else
      this.m_dialog.ShowHiddenDialog();
  }

  public virtual string Category => DnProcessSimulateCommands.TcCommands.TcNavigator.StringTable.AWC_CATAGORY;

  public virtual string Name => DnProcessSimulateCommands.TcCommands.TcNavigator.StringTable.AWC_NAME;

  public virtual string Bitmap => "TcCommands.TcNavigator.Images.OpenStudy.bmp";

  public virtual string LargeBitmap => "TcCommands.TcNavigator.Images.OpenStudy.png";

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("StudyManager");
}
